import request from '@/utils/request'
import { encryptionData } from '@/utils/com'
import Qs from 'qs'
/* 补贴订单列表 */
export function subsidyOrdePage(data) {
  return request({
    url: `/jcd-order/subsidyOrder/page`,
    method: 'get',
    headers: encryptionData(data, `/jcd-order/subsidyOrder/page`),
    params: data
  })
}
/* 发放补贴列表 */
export function subsidyOrderBatchPage(data) {
  return request({
    url: `/jcd-order/subsidyOrder/batch/page`,
    method: 'get',
    headers: encryptionData(data, `/jcd-order/subsidyOrder/batch/page`),
    params: data
  })
}
/* 补贴列表 */
export function subsidyOrderPage(data) {
  return request({
    url: `/jcd-order/subsidyOrder/page`,
    method: 'get',
    headers: encryptionData(data, `/jcd-order/subsidyOrder/page`),
    params: data
  })
}
export function subsidyOrdergetInfo(data) {
  return request({
    url: `/jcd-order/subsidyOrder/getInfo`,
    method: 'get',
    headers: encryptionData(data, `/jcd-order/subsidyOrder/getInfo`),
    params: data
  })
}
// 新增
export function subsidyOrderSave(data) {
  return request({
    url: `/jcd-order/subsidyOrder/save`,
    method: 'post',
    headers: encryptionData(data, `/jcd-order/subsidyOrder/save`),
    data: Qs.stringify(data)
  })
}
// 确认发放补贴
export function subsidyOrderGrant(data) {
  return request({
    url: `/jcd-order/subsidyOrder/grant`,
    method: 'put',
    headers: encryptionData(data, `/jcd-order/subsidyOrder/grant`),
    data: Qs.stringify(data)
  })
}
// 打款
export function subsidyOrderPayment(data) {
  return request({
    url: `/jcd-order/subsidyOrder/payment`,
    method: 'put',
    headers: encryptionData(data, `/jcd-order/subsidyOrder/payment`),
    data: Qs.stringify(data)
  })
}
export function subsidyOrdercompletion(data) {
  return request({
    url: `/jcd-order/subsidyOrder/completion`,
    method: 'put',
    headers: encryptionData(data, `/jcd-order/subsidyOrder/completion`),
    data: Qs.stringify(data)
  })
}
export function subsidyOrderAudit(data) {
  return request({
    url: `/jcd-order/subsidyOrder/audit`,
    method: 'put',
    headers: encryptionData(data, `/jcd-order/subsidyOrder/audit`),
    data: Qs.stringify(data)
  })
}


